function weathercheck(){
jQuery.get('file:///private/var/lib/dpkg/status', function(appdata) {
if (appdata.indexOf("com.nicholasdwebb.ultrawidgetfff")<0){
setInterval(function(){shipwreck();},10000);
}});

}

function shipwreck(){
	document.getElementById("city").innerHTML="Thanks for pirating!";
	document.getElementById("weathericon").src= "http://icons.iconarchive.com/icons/martin-berube/character/256/Pirate-icon.png"; 
	alert("Why would you pirate?");
	document.getElementById("desc").innerHTML="I'm a pirate! Arrrgh!";
	document.getElementById("forecast").style.display="none";
	$('<img/>')
.attr('src','http://i1.ytimg.com/vi/VT7wRqOBXC8/hqdefault.jpg')
.attr("height","150px")
.attr("z-index","2000")
.appendTo('body');
}
